package model;

public class Course {
    private String courseId;    // 课号
    private String courseName;  // 课程名
    private String location;    // 上课地点
    private String time;        // 上课时间
    private Teacher teacher;    // 授课教师

    // 构造方法
    public Course(String courseId, String courseName, String location, String time) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
    }

    // 课号的Getter方法（正确名称）
    public String getCourseId() {
        return courseId;
    }

    // 课程名的Getter方法
    public String getCourseName() {
        return courseName;
    }

    // 上课地点的Getter方法
    public String getLocation() {
        return location;
    }

    // 上课时间的Getter方法
    public String getTime() {
        return time;
    }

    // 设置授课教师
    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    // 授课教师的Getter方法
    public Teacher getTeacher() {
        return teacher;
    }
}